//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_requestplayerstats.sqf"
#include "x_setup.sqf"

#include "x_uiinc.sqf"

if (isNil QGVAR(pstatsreceived)) then {GVAR(pstatsreceived) = true};
if (!GVAR(pstatsreceived)) exitWith {
	systemChat (localize "STR_DOM_MISSIONSTRING_1441");
};
GVAR(pstatsreceived) = false;
systemChat (localize "STR_DOM_MISSIONSTRING_1442");
[QGVAR(reqps), player] call FUNC(NetCallEventCTS);
0 spawn {
	scriptName "spawn_d_fnc_requestPlayerStats";
	private ["_timeend"];
	_timeend = time + 30;
	waitUntil {time > _timeend || {GVAR(pstatsreceived)}};
	if (!GVAR(pstatsreceived) && {time > _timeend}) then {
		systemChat (localize "STR_DOM_MISSIONSTRING_1443");
	};
	GVAR(pstatsreceived) = true;
};